package com.wbk.lotterysystemlotteryservice.service;

import com.wbk.lotterysystemlotteryservice.commons.bo.LotteryBO;
import com.wbk.lotterysystemlotteryservice.entity.Lottery;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface LotteryService {

    //保存抽奖活动
    Lottery save(LotteryBO lotteryBO);

    //根据id得到抽奖活动
    Lottery getLotteryById(Integer id);

    //得到所有以通过审核的抽奖活动
    List<Lottery> getAll();

    //得到所有待审核的抽奖活动
    List<Lottery> getAllWithoutAudit();

    //修改抽奖活动内容
    int update(Lottery lottery);

    //审核抽奖活动
    int audit(Lottery lottery);

    //查看商家的抽奖活动
    List<Lottery> getAllByStoreUserNo(Long storeUserNo);

    //用户参加过的抽奖记录
    List<Lottery> getAllHasJoin(List<Integer> ids);
}
